package com.we823.cms.model.cms;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.we823.cms.model.BaseModelWithDate;

@Entity
@Table(name="cms_news")
public class News extends BaseModelWithDate<Integer> {

	private static final long serialVersionUID = 8233L;

	private String title;
	private String subtitle;
	private Integer istop;

	@Column(name = "news_channel_id")
	private Integer newsChannelId;
	@Transient
	private NewsChannel newsChannel;
	
	private Integer linktype;
	private String linkurl;
	private String content;
	private String author;
	private String copyfrom;
	private String inputer;
	private Integer hits;
	
	@Column(name="is_photo_news")
	private Integer isPhotoNews;
	
	@Column(name="photourl")
	private String photoUrl;
	
	@Column(name="template_id")
	private Integer templateId;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}

	public String getSubtitle() {
		return subtitle;
	}
	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}
	public Integer getIstop() {
		return istop;
	}
	public void setIstop(Integer istop) {
		this.istop = istop;
	}

	public String getLinkurl() {
		return linkurl;
	}
	public void setLinkurl(String linkurl) {
		this.linkurl = linkurl;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getHits() {
		return hits;
	}
	public void setHits(Integer hits) {
		this.hits = hits;
	}
	public Integer getIsPhotoNews() {
		return isPhotoNews;
	}
	public void setIsPhotoNews(Integer isPhotoNews) {
		this.isPhotoNews = isPhotoNews;
	}
	public String getPhotoUrl() {
		return photoUrl;
	}
	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}
	public Integer getTemplateId() {
		return templateId;
	}
	public void setTemplateId(Integer templateId) {
		this.templateId = templateId;
	}
	public Integer getLinktype() {
		return linktype;
	}
	public void setLinktype(Integer linktype) {
		this.linktype = linktype;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getCopyfrom() {
		return copyfrom;
	}
	public void setCopyfrom(String copyfrom) {
		this.copyfrom = copyfrom;
	}
	public String getInputer() {
		return inputer;
	}
	public void setInputer(String inputer) {
		this.inputer = inputer;
	}
	public NewsChannel getNewsChannel() {
		return newsChannel;
	}
	public void setNewsChannel(NewsChannel newsChannelModel) {
		this.newsChannel = newsChannelModel;
	}

	public Integer getNewsChannelId() {
		return newsChannelId;
	}

	public void setNewsChannelId(Integer newsChannelId) {
		this.newsChannelId = newsChannelId;
	}
}
